package com.bootdo.clouddo.core.security;

import org.springframework.security.core.GrantedAuthority;

/**
 * 
 * @author island
 *
 */
public class XbGrantedAuthority implements GrantedAuthority {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	/**
	 * this is the access right name which is the type of string, e.g.
	 * <br>ADMIN
	 * <BR>ProductManager
	 */
	private String authority;
	
	public XbGrantedAuthority(String right){
		this.authority = right;
	}
	
	public XbGrantedAuthority(){
		
	}

	@Override
	public String getAuthority() {
		return authority;
	}

	public void setAuthority(String authority) {
		this.authority = authority;
	}

}
